package com.zhuoyue.system.service.impl;

import java.util.List;

import com.zhuoyue.common.annotation.DataScope;
import com.zhuoyue.system.domain.TblAppMessage;
import com.zhuoyue.system.domain.vo.TblAppMessageVo;
import com.zhuoyue.system.mapper.TblAppMessageMapper;
import com.zhuoyue.system.service.ITblAppMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 消息Service业务层处理
 *
 * @author zhanghui
 * @date 2021-08-25
 */
@Service
public class TblAppMessageServiceImpl implements ITblAppMessageService {
    @Autowired
    private TblAppMessageMapper tblAppMessageMapper;

    /**
     * 查询消息
     *
     * @param id 消息ID
     * @return 消息
     */
    @Override
    public TblAppMessage selectTblMessageById(String id) {
        return tblAppMessageMapper.selectTblMessageById(id);
    }

    /**
     * 查询消息列表
     *
     * @param tblMessage 消息
     * @return 消息
     */
    @Override
    @DataScope(deptAlias = "s_d")
    public List<TblAppMessageVo> selectTblMessageList(TblAppMessage tblMessage) {
        return tblAppMessageMapper.selectTblMessageList(tblMessage);
    }
}
